using UnityEngine;
using System.Collections;

public class SlotCarGUI
{
    public delegate void AccelerateHandle(float value);
    public event AccelerateHandle OnAccelerate;

    float accel;

    public void OnGUI()
    {
        accel = GUILayout.Slider(new Rect(0.0f, 0.0f, 2.0f, 10.0f), 0.0, 1.0f, accel);
        OnAccelerate(accel);
    }
}
